include $(ERP_BASE_PATH)/comm/makefile.comm.v2

INSTALL_PATH = $(ERP_BASE_PATH)/gis/export_lib_suse64

INCLUDE = -I$(ERP_BASE_PATH)/comm/export_include/c2cplatform \
	  -I$(ERP_BASE_PATH)/comm/export_include \
	  -I$(ERP_BASE_PATH)/comm/export_include/libc2c \
	  -I$(ERP_BASE_PATH)/comm/export_include/app_platform \
	  -I$(ERP_BASE_PATH)/gis/export_include/http_comm

OUTPUT = libcomm_http_custorm.a

VPATH = 
		
OBJECTS=$(patsubst %.cpp,%.o,$(wildcard *.cpp))

all:$(OUTPUT) 

.SUFFIXES: .o .cpp
.cpp.o:
	$(CXX) $(CPPFLAGS) $(INCLUDE) -c $(filter %.cpp, $^) -o $@

.o:
	$(CXX) $(CPPFLAGS) $(INCLUDE) -fPIC -o $@ $^

$(OUTPUT): $(OBJECTS)
	ar -rs  $@ $^

clean:
	rm -f *.o *.a *.~ *.bak
	rm -f $(OBJECTS)

install:
	cp -fv $(OUTPUT) $(INSTALL_PATH)

dep:
	mkdep -p$(VPATH) $(INCLUDE) $(SOURCES) > .depend

ifneq ($(wildcard .depend),)
include .depend
endif
